const router = require('express').Router();
const { authenticate } = require('../middleware/auth');
const { success } = require('../utils/response');

// 受保护的路由示例
router.get('/profile', authenticate, (req, res) => {
  res.json(success('Protected data', {
    user: req.user,
    secretData: 'This is protected information'
  }));
});

module.exports = router;